package String.exercise;

import java.util.Scanner;

public class Demo6 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        String st=sc.nextLine();
        String substring = st.substring(2);
        System.out.println(substring);
        String substring1 = st.substring(1, 3);
        System.out.println(substring1);
        String ss=st.replaceAll("TMD","***");
        System.out.println(ss);
        String ss1=st.replace('x','y');
        System.out.println(ss1);
        String ss2=st.replace("45","12");
        System.out.println(ss2);
        //String ss3=st.replaceAll('m','k');
        String[] ssr=st.split(",");
        for (int i = 0; i < ssr.length; i++) {
            System.out.println(ssr[i]);
        }

    }
}
